package cn.js.sip.rat.system.service.impl;

import cn.js.sip.rat.system.page.TableDataInfo;
import cn.js.sip.rat.system.service.BaseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @ClassName: cn.js.sip.rat.system.service.impl
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-04   10:38
 */
public class BaseServiceImpl<T> implements BaseService<T> {


    @Override
    public TableDataInfo getDataTable(Page page) {
        TableDataInfo tableDataInfo = new TableDataInfo();
        tableDataInfo.setCode(0);
        tableDataInfo.setRows(page.getRecords());
        tableDataInfo.setTotal(page.getTotal());
        return tableDataInfo;
    }
}
